package com.san.school.controller;
import com.san.school.entity.Course;
import com.san.school.service.impl.CourseServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (course)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/course")
public class CourseController {
/**
* 服务对象
*/
@Resource
private CourseServiceImpl courseServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public Course selectOne(Integer id) {
return courseServiceImpl.selectByPrimaryKey(id);
}

}
